package com.shenmazong.controller;

import com.shenmazong.service.TbTeacherService;
import com.shenmazong.utils.ResultResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 教师
 */
@RequestMapping("/teacher")
@RestController
public class TbTeacherController {
    @Autowired
    TbTeacherService tbTeacherService;

    /**
     * 下拉
     * @return
     */
    @PostMapping("/findTeacher")
    public ResultResponse findTeacher(){
        return tbTeacherService.findTeacher();
    }

}
